package com.stream.service;

import com.stream.model.entity.UserEntity;

import java.util.List;
import java.util.Map;

/**
 * Created by yebaokang on 2017/5/26.
 */
public interface UserService {

    UserEntity queryObject(Long userId);

    List<UserEntity> queryList(Map<String, Object> map);

    int queryTotal(Map<String, Object> map);

    void save(String mobile, String password);

    void update(UserEntity user);

    void delete(Long userId);

    void deleteBatch(Long[] userId);

    UserEntity querryByMobile(String mobile);

    /**
     * 用户登录
     * @param mobile     手机号
     * @param password   密码
     * @return           返回用户ID
     */
    long login(String mobile, String password);
}
